using System;
using NUnit.Framework;
using Utilities;

namespace UtilitiesTests
{
    [TestFixture]
    public class TimeSpanTests
    {
        [Test]
        public void ThereAre365DaysInAYear()
        {
            //Arrange
            TimeSpan daysInAYear;

            //Act
            daysInAYear = 365.Days();

            //Assert
            Assert.AreEqual(365, daysInAYear.Days);

        }

        [Test]
        public void ThereAre60MinutesInAnHour()
        {
            //Arrange
            TimeSpan minutesInAnHour;

            //Act
            minutesInAnHour = 60.Minutes();

            //Assert
            Assert.AreEqual(1, minutesInAnHour.Hours);

        }
        [Test]
        public void ThereAre24HoursInAnDay()
        {
            //Arrange
            TimeSpan hoursInADay;

            //Act
            hoursInADay = 24.Hours();

            //Assert
            Assert.AreEqual(1, hoursInADay.Days);

        }

        [Test]
        public void ThereAre60SecondsInaMinute()
        {
            //Arrange
            TimeSpan secondsInAMinute;

            //Act
            secondsInAMinute = 60.Seconds();

 

            //Assert
            Assert.AreEqual(1, secondsInAMinute.Minutes);

        }
    }
}